home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 October: Technology Seed / ADC Seed CD - October 1999.toast / FireWire / FireWire_2.0_SDK / Source / FWIM / Build next >
Encoding:
Text File  |  1999-04-12  |  1.3 KB  |  71 lines  |  [TEXT/MPS ]

  1. #
  2. #    File:        Build
  3. #
  4. #    Contains:    Commands to build FWIM sample code.
  5. #
  6. #    Written by:    Erik Staats
  7. #
  8. #    Copyright:    © 1996 by Apple Computer, Inc., all rights reserved.
  9. #
  10. #    Change History (most recent first):
  11. #
  12. #       <FW2>      8/7/96    ES        Filled in contains and written by fields.
  13. #       <FW1>      8/7/96    ES        first checked in
  14. #
  15. #
  16.  
  17. set Commands `Directory`::Tools:,"{Commands}"
  18. export Commands
  19.  
  20. unset BuildTargets
  21.  
  22. ################################################################################
  23. #
  24. # Parse parameters.
  25. #
  26.  
  27. for parm in {"Parameters"}
  28.  
  29. # full build option
  30.     if "{parm}" =~ /-e/
  31.         set DoFullBuild 1
  32.         export DoFullBuild
  33.         continue
  34.     end
  35.  
  36. # default is a build target
  37.     set BuildTargets "{BuildTargets} {parm}"
  38.  
  39. end
  40.  
  41. ################################################################################
  42. #
  43. # Build all targets.
  44. #
  45.  
  46. for BuildTarget in {BuildTargets}
  47.  
  48.     if {DoFullBuild}
  49.         Echo "# `Date -t` ----- Full Build of {BuildTarget}."
  50.     else
  51.         Echo "# `Date -t` ----- Build of {BuildTarget}."
  52.     end
  53.     Echo "# `Date -t` ----- Analyzing dependencies."
  54.  
  55.     Begin
  56.         Echo "Set Echo 1"
  57.         if {DoFullBuild}
  58.             make -e -f MakeFile "{BuildTarget}"
  59.         else
  60.             make -f MakeFile "{BuildTarget}"
  61.         end
  62.     End > "{BuildTarget}".makeout
  63.  
  64.     Echo "# `Date -t` ----- Executing build commands."
  65.     "{BuildTarget}".makeout
  66.     delete -y "{BuildTarget}".makeout
  67.  
  68.     Echo "# `Date -t` ----- Done."
  69.  
  70. end
  71.